@layout("/common/_form.html",{js:["/assets/school/classInfo/classInfo_edit.js"]}){

<form class="layui-form" id="classInfoForm" lay-filter="classInfoForm">
    <div class="layui-fluid" style="padding-bottom: 75px;">
        <div class="layui-card">
            <div class="layui-card-header">基本信息</div>
            <div class="layui-card-body">
                <div class="layui-form-item layui-row">
                    <input name="id" type="hidden"/>
                    <div class="layui-inline layui-col-md12">
                        <label class="layui-form-label">学校<span style="color: red;">*</span></label>
                        <div class="layui-input-block">
                            <select name="schoolId" lay-search="" id="schoolId">
                                @for(item in schools){
                                <option value="${item.id}">${item.name}</option>
                                @}
                            </select>
                            <!--                            <input id="schoolId" name="schoolId" placeholder="请输入学校编码（学校信息表主键）" type="text" class="layui-input" lay-verify="required" required/>-->
                        </div>
                    </div>
                    <div class="layui-inline layui-col-md6">
                        <label class="layui-form-label">班级编码<span style="color: red;">*</span></label>
                        <div class="layui-input-block">
                            <input id="code" name="code" placeholder="请输入班级编码" type="text" class="layui-input" lay-verify="required" required/>
                        </div>
                    </div>
                    <div class="layui-inline layui-col-md6">
                        <label class="layui-form-label">班级名称<span style="color: red;">*</span></label>
                        <div class="layui-input-block">
                            <input id="name" name="name" placeholder="请输入班级名称" type="text" class="layui-input" lay-verify="required" required/>
                        </div>
                    </div>
                    <div class="layui-inline layui-col-md6">
                        <label class="layui-form-label">班主任<span style="color: red;">*</span></label>
                        <div class="layui-input-block">
                            <select name="teacherId" lay-search="" id="teacherId">
                                <option value="">请选择班主任</option>
                                @for(item in teachers){
                                <option value="${item.id}">${item.name}</option>
                                @}
                            </select>
                            <!--                            <input id="teacherId" name="teacherId" placeholder="请输入班主任（教师信息表主键）" type="text" class="layui-input" lay-verify="required" required/>-->
                        </div>
                    </div>
                    <div class="layui-inline layui-col-md6">
                        <label class="layui-form-label">班训<span style="color: red;">*</span></label>
                        <div class="layui-input-block">
                            <input id="classMotto" name="classMotto" placeholder="请输入班训" type="text" class="layui-input" lay-verify="required" required/>
                        </div>
                    </div>
                    <div class="layui-inline layui-col-md12">
                        <label class="layui-form-label">班级封面图<span style="color: red;">*</span></label>
                        <div class="layui-input-block">
                            <input id="fileId" name="fileId" type="hidden" class="layui-input"/>
                            <button type="button" class="layui-btn layui-btn-sm" id="test1"><i class="layui-icon"></i>选择图片</button>
                            <div class="layui-upload-list">
                                <img class="layui-upload-img" id="demo1" width="92px" height="92px">
                                <p id="demoText"></p>
                            </div>
                        </div>
                    </div>
                    <div class="layui-inline layui-col-md12">
                        <label class="layui-form-label">备注</label>
                        <div class="layui-input-block">
                            <textarea id="memo" name="memo" placeholder="请输入备注" type="text" class="layui-textarea" ></textarea>
                        </div>
                    </div>
                </div>
            </div>
        </div>
    </div>
    <div class="form-group-bottom text-center">
        <button class="layui-btn" lay-filter="btnSubmit" lay-submit>&emsp;提交&emsp;</button>
        <button type="reset" class="layui-btn layui-btn-primary" ew-event="closeDialog">&emsp;取消&emsp;</button>
    </div>

</form>

@}